package com.lightboat.system.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lightboat.system.domain.CrmUserFollowRecord;

import java.util.List;

/**
 * 用户跟进记录Service接口
 * 
 * @author lightboat
 * @date 2025-08-22
 */
public interface ICrmUserFollowRecordService  extends IService<CrmUserFollowRecord> {
    /**
     * 查询用户跟进记录
     * 
     * @param id 用户跟进记录主键
     * @return 用户跟进记录
     */
    public CrmUserFollowRecord selectCrmUserFollowRecordById(Long id);

    /**
     * 查询用户跟进记录列表
     * 
     * @param crmUserFollowRecord 用户跟进记录
     * @return 用户跟进记录集合
     */
    public List<CrmUserFollowRecord> selectCrmUserFollowRecordList(CrmUserFollowRecord crmUserFollowRecord);

    /**
     * 新增用户跟进记录
     * 
     * @param crmUserFollowRecord 用户跟进记录
     * @return 结果
     */
    public int insertCrmUserFollowRecord(CrmUserFollowRecord crmUserFollowRecord);

    /**
     * 修改用户跟进记录
     * 
     * @param crmUserFollowRecord 用户跟进记录
     * @return 结果
     */
    public int updateCrmUserFollowRecord(CrmUserFollowRecord crmUserFollowRecord);

    /**
     * 批量删除用户跟进记录
     * 
     * @param ids 需要删除的用户跟进记录主键集合
     * @return 结果
     */
    public int deleteCrmUserFollowRecordByIds(Long[] ids);

    /**
     * 删除用户跟进记录信息
     * 
     * @param id 用户跟进记录主键
     * @return 结果
     */
    public int deleteCrmUserFollowRecordById(Long id);

    /**
     * 查询用户跟进记录列表
     * @param wrapper
     * @return
     */
    List<CrmUserFollowRecord> selectCrmUserFollowRecordList(Wrapper<?> wrapper);

    LambdaQueryWrapper<CrmUserFollowRecord> getQueryWrapper(CrmUserFollowRecord crmUserFollowRecord);

    /**
     * 获取最新的一条记录
     * @param crmUserFollowRecord
     * @return
     */
    CrmUserFollowRecord getLatestRecord(CrmUserFollowRecord crmUserFollowRecord);
}
